using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;
namespace Maticsoft.Web.Register.announcement
{
    public partial class Show : Page
    {        
        		public string strid=""; 
		protected void Page_Load(object sender, EventArgs e)
		{
			if (!Page.IsPostBack)
			{
				if (Request.Params["id"] != null && Request.Params["id"].Trim() != "")
				{
					strid = Request.Params["id"];
					string Announcement_ID= strid;
					ShowInfo(Announcement_ID);
				}
			}
		}
		
	private void ShowInfo(string Announcement_ID)
	{
		Maticsoft.BLL.Register.announcement bll=new Maticsoft.BLL.Register.announcement();
		Maticsoft.Model.Register.announcement model=bll.GetModel(Announcement_ID);
		this.lblAnnouncement_ID.Text=model.Announcement_ID;
		this.lblAnnouncement_Title.Text=model.Announcement_Title;
		this.lblAnnouncement_Content.Text=model.Announcement_Content;
		this.lblAnnouncement_NumberViews.Text=model.Announcement_NumberViews.ToString();
		this.lblAnnouncement_AddTime.Text=model.Announcement_AddTime.ToString();
		this.lblAnnouncement_Recoder.Text=model.Announcement_Recoder;
		this.lblAnnouncement_Status.Text=model.Announcement_Status;

	}


    }
}
